<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <title>全部订单</title>
    <meta name="keywords" content="DeathGhost,DeathGhost.cn,web前端设,移动WebApp开发"/>
    <meta name="description" content="DeathGhost.cn::H5 WEB前端设计开发!"/>
    <meta name="author" content="DeathGhost"/>
    <link th:href="@{/style/style.css}" rel="stylesheet" type="text/css"/>
    <link th:href="@{/style/bootstrap.btn.css}" rel="stylesheet">
    <script type="text/javascript" th:src="@{/js/public.js}"></script>
    <script type="text/javascript" th:src="@{/js/jquery.js}"></script>
    <script type="text/javascript" th:src="@{/js/jqpublic.js}"></script>
</head>
<body>
<!--引用头部导航栏代码块-->
<div th:replace="~{commons/common::top1}"></div>
<!--Start content-->
<section class="Psection MT20">
    <!--引用侧边栏-->
    <article class="U-article Overflow">
        <section class="fslist_navtree">
            <ul class="select">
                <li class="select-list">
                    <dl id="select1">
                        <dt>分类：</dt>
                        <dd th:if="${order_state eq '1'}" class="select-all selected"><a
                                th:href="@{'/admin/adminOrderList?order_state=1'}">已支付</a></dd>
                        <dd th:if="${order_state ne '1'}"><a th:href="@{'/admin/adminOrderList?order_state=1'}">已支付</a></dd>
                        <dd th:if="${order_state eq '0'}" class="select-all selected"><a
                                th:href="@{'/admin/adminOrderList?order_state=0'}">未支付</a></dd>
                        <dd th:if="${order_state ne '0'}"><a th:href="@{'/admin/adminOrderList?order_state=0'}">未支付</a></dd>
                    </dl>
                </li>
            </ul>
            <input type="hidden" class="form-control" name="order_state" id="order_state" th:value="${order_state}">
        </section>
        <!--user order list-->
        <section>
            <table class="Myorder">
                <th class="Font14 FontW">订单编号</th>
                <th class="Font14 FontW">下单时间</th>
                <th class="Font14 FontW">订单总金额</th>
                <th class="Font14 FontW">备注</th>
                <th class="Font14 FontW">支付状态</th>
                <th class="Font14 FontW">订单状态</th>
                <th class="Font14 FontW">联系电话</th>
                <th class="Font14 FontW">收货人</th>
                <th class="Font14 FontW">操作</th>
                <tr th:each="order:${orderList}">
                    <td class="FontW"><a href="#" style="color: #00a73e">[[${order.order_id}]]</a></td>
                    <td>[[${order.order_time}]]</td>
                    <td class="FontW" style="color: #e53f0b">[[${order.order_price}]]</td>
                    <td>[[${order.order_remarks}]]</td>
                    <td th:if="${order.order_state eq '0'}">未支付</td>
                    <td th:if="${order.order_state eq '1'}">已支付</td>
                    <td>[[${order.order_shopstate}]]</td>
                    <td>[[${order.order_phone}]]</td>
                    <td>[[${order.order_username}]]</td>
                    <td>
                        <a style="cursor:pointer" th:href="@{'/admin/adminLookOrder?order_id='+${order.order_id}}">查看订单</a>
                        <a th:if="${order.order_shopstate eq '未发货'}" style="cursor:pointer" th:onclick="'admin_shop_state('+${order.order_id}+')'"> | 发货</a>
                    </td>
                </tr>
            </table>
            <div class="TurnPage">
                <a th:href="@{'/admin/adminOrderList?pageNum='+${pageInfo.navigateFirstPage}+'&order_state='+${order_state}}">
                    <span class="Prev"><i></i>首页</span>
                </a>
                <a th:if="${pageInfo.pageNum != 1}" th:href="@{'/admin/adminOrderList?pageNum='+${pageInfo.prePage}+'&order_state='+${order_state}}">
                    <span class="Prev">上一页<i></i></span>
                </a>
                <a th:if="${pageInfo.pageNum == 1}">
                    <span class="Prev">上一页<i></i></span>
                </a>
                <a th:if="${pageInfo.pageNum != pageInfo.pages}" th:href="@{'/admin/adminOrderList?pageNum='+${pageInfo.nextPage}+'&order_state='+${order_state}}">
                    <span class="Next">下一页<i></i></span>
                </a>
                <a th:if="${pageInfo.pageNum == pageInfo.pages}">
                    <span class="Next">下一页<i></i></span>
                </a>
                <a th:href="@{'/admin/adminOrderList?pageNum='+${pageInfo.navigateLastPage}+'&order_state='+${order_state}}">
                    <span class="Next">最后一页<i></i></span>
                </a>
                <span>
                当前第[[${pageInfo.pageNum}]]页&nbsp;&nbsp;&nbsp;共[[${pageInfo.pages}]]页
            </span>
            </div>
        </section>
    </article>
</section>
<!--End content-->
<!--引用底部栏代码块-->
<div th:replace="~{commons/common::last}"></div>
</body>
</html>
